package LessonBL;

import java.util.ArrayList;

import po.LessonPO;
import po.characterPO;
import LessonData.LessonDataController;

public class LessonDriver {

	LessonDataController ldc;
	LessonPO lesson;
	
	public LessonDriver()
	{
		ldc = new LessonDataController();
		lesson.lessonID = "test001";
		lesson.teacherID = "test002";
		lesson.name = "test003";
		lesson.place = "test004";
		lesson.day = "test005";
		lesson.time = "test006";
		lesson.information = "test007";
		lesson.score = "test008";
		lesson.maxNum = "test009";
		lesson.type = "test010";
		lesson.range = "test011";
		lesson.semester = "test012";
		lesson.teacherAS = "test013";
		lesson.department = "test014";
		lesson.hasSelected = "test015";
	}
	
	public boolean driveInsert(LessonPO aim) 
	{
		return ldc.Insert(lesson);
	}
	
	public boolean driveRemove(LessonPO aim) 
	{
		return ldc.Remove(lesson);
	}
	
	public boolean driveRemove(String LessonID)
	{
		return ldc.Remove("test001");
	}
	
	
	public boolean driveUpdate(LessonPO aim) 
	{
		return ldc.Update(lesson);
	}
	
	public LessonPO driveGet(String id) 
	{
		return ldc.get("test001");
	}

	
	public ArrayList<LessonPO> driveGet(characterPO aim)
	{
		return null;
	}
	
	public ArrayList<LessonPO> driveGet(LessonPO aim) 
	{
		return ldc.Get(aim);
	}
}
